package cn.imvc.app.models;

import org.springframework.data.domain.Page;

import cn.imvc.app.entities.User;
import cn.imvc.data.domain.ViewRequest;

public interface UserModel {
	Page<User> find(ViewRequest viewRequest);
	
	Page<User> find(String select,String from,ViewRequest viewRequest);

	User get(int id);
	
	User get(String username);

	User save(User entity);

	User update(int id,User entity);

	void delete(int id);

}
